package com.shop.cereshop.app.dao.business;

import com.shop.cereshop.commons.domain.business.CerePlatformBusiness;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CerePlatformBusinessDAO {
    int deleteByPrimaryKey(Long businessUserId);

    int insert(CerePlatformBusiness record);

    int insertSelective(CerePlatformBusiness record);

    CerePlatformBusiness selectByPrimaryKey(Long businessUserId);

    int updateByPrimaryKeySelective(CerePlatformBusiness record);

    int updateByPrimaryKey(CerePlatformBusiness record);

    CerePlatformBusiness checkUserName(@Param("shopPhone") String shopPhone);

    CerePlatformBusiness findByUserName(@Param("userName") String userName);

    CerePlatformBusiness selectByToken(@Param("token") String token);
}